luci-mod-network: allow netifd version query to fail
authorJo-Philipp Wich <[email protected]>
Mon, 31 May 2021 17:00:15 +0000 (19:00 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 31 May 2021 17:00:47 +0000 (19:00 +0200)
Fixes: 17af33ee48 ("luci-mod-network: migrate network config depending on netifd version")
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 34dc351303bad74c8f753c37788814796888129a)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 5d7f237bb62859763eba3eb0536258add5cc4b91..5626a2b82378c4d548fb1a6a572d661e517e8102 100644 (file)
@@ -294,7 +294,7 @@ return view.extend({
                        network.getDSLModemType(),
                        network.getDevices(),
                        fs.lines('/etc/iproute2/rt_tables'),
-                       fs.read('/usr/lib/opkg/info/netifd.control'),
+                       L.resolveDefault(fs.read('/usr/lib/opkg/info/netifd.control')),
                        uci.changes()
                ]);
        },